package com.iraeta.service.basic;

import com.iraeta.entity.main.ErpCangku;
import com.iraeta.entity.main.User;

import java.util.List;

public interface CangKuService {
    public int addCangKu(ErpCangku record);
    public int updateCangKu(ErpCangku record);
    public ErpCangku getByPrimaryKey(Integer id);
    public ErpCangku getByName(String cwhname);
    public ErpCangku getByCode(String cwhcode);
    public void updateAllCangKu();
    public List<ErpCangku> listErpCangku(Integer userId);
    public List<ErpCangku> listPlanErpCangku(Integer planId);
    public List<ErpCangku> listErpCangku();
    public List<ErpCangku> searchErpCangku(String cWhName);

    public List<User> listCangKuUser(Integer cangkuId);
    public void saveCangKuUser(Integer cangkuId, List<Integer> users);

}
